<?php
	session_start();
	require 'libraries/CreateReportLib.php';
	$key = $_GET["sample_key"];
	
	$_SESSION["sample_details"] = GetSampleDetails($key, "casl", "localhost", "login", "login");
	$_SESSION["sample_entry"] = GetSampleEntry($key, "casl", "localhost", "login", "login");
	$_SESSION["sample_type"] = GetDistinctSampleTypeEntry($key, "casl", "localhost", "login", "login");
	$_SESSION["sample_analysis"] = GetDistinctSampleAnalysisEntry($key, "casl", "localhost", "login", "login");
	$_SESSION["sample_numbers"] = GetSampleEntryNumbers($key, "casl", "localhost", "login", "login");
	$_SESSION["maxdate"] = GetMaxDate($key, "casl", "localhost", "login", "login");
	$_SESSION["username"] = GetAdministratorName($_SESSION["administrator"], "casl", "localhost", "login", "login");
	$_SESSION["information"] = GetInformation($key, "casl", "localhost", "login", "login");
	
	header("Location: report/viewReport.php");
?>